package com.mn;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.mn.service.DisplayMessage;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("context.xml");
        DisplayMessage displayMessage = (DisplayMessage) applicationContext.getBean("dm");
        displayMessage.displayMessage("World Sheraz");
        
    }

}
